﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Nemesis;

namespace Nemesis.Plugins.NRelog.Controllers
{
    internal class FSM
    {
        internal static void OnBotStart()
        {
            try
            {
                Bot.Engine.FSM.RemoveStateByName("IntervalState");
                Bot.Engine.FSM.RemoveStateByName("LogoutState");

                Bot.Engine.FSM.States.Add(new States.LogoutState());
                Bot.Engine.FSM.States.Add(new States.IntervalState());

                Logger.WriteLine("[NRelog] States added!");
            }
            catch (Exception ex)
            {
                Logger.WriteException(ex.ToString());
            }
        }
    }
}
